ARG PHP_VERSION
FROM phpswoole/swoole:4.8-php7.4-alpine

LABEL maintainer="Jhou Shuai <jhou.shuai@qq.com>"

ARG TZ
ARG PHP_EXTENSIONS
ARG CONTAINER_PACKAGE_URL


RUN if [ $CONTAINER_PACKAGE_URL ] ; then sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories ; fi


RUN docker-php-ext-install $PHP_EXTENSIONS